package com.ebocy.hammer.battle.fight.message;

import com.ebocy.hammer.core.constants.GameMessageCode;
import com.ebocy.hammer.core.message.AbstractS2CMessage;

public class S2CWormUpAttackMessage extends AbstractS2CMessage {
	String playerId;
	byte dir;

	public S2CWormUpAttackMessage(String playerId, byte dir) {
		this.playerId = playerId;
		this.dir = dir;
	}

	@Override
	protected void writeMessage() {
		writeString(this.playerId);
		writeByte(dir);
	}

	@Override
	public short getMessageCode() {
		return GameMessageCode.BATTLE_WORMUP_ATTACK;
	}

}
